package com.skywolf.chem.match.mapper;

import com.skywolf.chem.match.entity.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.skywolf.chem.match.params.vo.OrderInfoQueryVo;
import com.skywolf.chem.match.params.vo.OrderListQueryVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 订单详情表 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2021-09-24
 */
@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    List<String> getApplyMatchGroupIds(@Param("userId") Long userId,@Param("matchId") Long matchId);

    List<OrderListQueryVo> getOrderListByStatus(@Param("status") Integer status, @Param("userId") Long userId);

    OrderInfoQueryVo orderInfoQueryVo(@Param("orderId") Long id);
}
